package com.kcwl.carrier.domain.service;

import com.kcwl.carrier.domain.entity.RegularRoutesInfo;
import com.kcwl.carrier.domain.repository.IRegularRoutesInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @描述 收藏线路信息
 * @创建人 zhl
 * @创建时间 2022/11/1
 * @修改人和其它信息
 */
@Service
public class RegularRoutesInfoDomainService {

    @Autowired
    private IRegularRoutesInfoRepository regularRoutesInfoRepository;

    public Integer addRoute(RegularRoutesInfo regularRoutesInfo) {
        return regularRoutesInfoRepository.addRoute(regularRoutesInfo);
    }

    public Integer updateRoute(RegularRoutesInfo regularRoutesInfo) {
        return regularRoutesInfoRepository.updateRoute(regularRoutesInfo);
    }

    public Integer delRoute(RegularRoutesInfo regularRoutesInfo) {
        return regularRoutesInfoRepository.delRoute(regularRoutesInfo);
    }

    public List<RegularRoutesInfo> listRoute(RegularRoutesInfo regularRoutesInfo) {
        return regularRoutesInfoRepository.listRoute(regularRoutesInfo);
    }
}
